package cn.edu.xmu.oomall.order.microservice;

import cn.edu.xmu.oomall.core.config.OpenFeignConfig;
import cn.edu.xmu.oomall.order.microservice.vo.ShopVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "shop-service", configuration = OpenFeignConfig.class)
public interface ShopService {

    /** 获得商铺名 */
    @GetMapping(value = "shops/{id}")
    InternalReturnObject<ShopVo> getShopById(@PathVariable Long id);
}
